<?php

namespace teia\webdev\php\admin;

require_once 'DataRegistrationUtil.inc';

if (!isset($file_path) && isset($_REQUEST['file_path'])) {
	$file_path = $_REQUEST['file_path'];
} else {
	$file_path = 'C:\Users\bernardo.quibiana\workspace\teia.admin\rsc\db\products_items_img.csv';
}
$db_tb = 'ecom_prod_item_img';
$target_cols = array('prod_id', 'item_id', 'img_type', 'img_subtype', 'img_path','img_alt_txt',);

$pass = DataRegistratioinUtil::db_insert_csv($db_tb, $target_cols, $file_path);

echo "\n";
?>